package com.qf.main.pharmacy.common.qo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author chengqiang
 * @Create 2024-02-19-14:01
 * @Description:
 */
@Data
// @Validated
public class OrderQo {


    /**
     * 订单号
     */
    @TableField(value = "order_no")
    @ApiModelProperty(value = "订单号")
    private Long orderNo;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;


    /**
     * 商品条目
     */
    private List<OrderMallQo> orderMallQoList;


    /**
     * 商品总价格
     */
    @TableField(value = "total_price")
    @ApiModelProperty(value = "商品总价格")
    private BigDecimal totalPrice;

    /**
     * 收货地址id
     */
    @TableField(value = "order_address")
    @ApiModelProperty(value = "收货地址id")
    // @NotNull(message = "地址不能为空")
    private Integer orderAddress;

    /**
     * 订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)
     */
    @TableField(value = "order_status")
    @ApiModelProperty(value="订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)")
    private Integer orderStatus;

    private String remark;



}
